# 添加头文件路径到全局变量
add_file(PRO_HEAD_PATH "${CMAKE_CURRENT_LIST_DIR}/include")

# 递归查找
# file(GLOB_RECURSE <variable> "${<dir>}/*.cpp" "${<dir>}/*.c" "${<dir>}/*.cxx")
file(GLOB HEAD_FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h")
file(GLOB SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.c")

add_file(PRO_SRC_FILES ${SRC_FILES})
if (HEAD_FILES)
    message(STATUS "HEAD_FILES is empty.")
else()
    add_file(PRO_HEAD_FILES ${HEAD_FILES})
endif()

